<?php

/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/6/20
 * Time: 下午6:27
 */
namespace app\index\service;
class UserService
{
    public static function getUserLoginStatus($key,$value){
        $phone = cache($key);

        if($phone == false || $phone != $value) {
            $data = [
                "msg"=>"登录超时",
                "status" =>-1
            ];
            return $data;

        }
        $data = [
            "msg"=>"登录中",
            "status" =>1
        ];

        return $data;
    }
}